package com.ms.domain.dto;

import jakarta.validation.constraints.*;
import lombok.Builder;
import lombok.Data;

import java.util.List;

// 创建分类DTO
@Data
public class GenreCreateDTO {
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "名称长度不能超过50字符")
    private String name;

    @NotNull(message = "层级不能为空")
    @Min(value = 1, message = "层级最小为1")
    @Max(value = 3, message = "层级最大为3")
    private Integer level;

    @NotNull(message = "父分类ID不能为空")
    private Integer parentId;
}